package cn.com.infohold.smartcity.api.bean;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by Mr.Fan on 2017/4/30.
 */

public class UpdateInfo implements Serializable {

    /**
     * 1: apk
     * 2: weex
     */
    @Expose()
    @SerializedName("code")
    int code;

    @Expose()
    @SerializedName("apkInfo")
    ApkUpdateInfo apkInfo;

    @Expose()
    @SerializedName("apkUrl")
    String apkUrl;

    @Expose()
    @SerializedName("weexInfo")
    WeexUpdateInfo weexInfo;

    @Expose()
    @SerializedName("weexUrl")
    String weexUrl;


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ApkUpdateInfo getApkInfo() {
        return apkInfo;
    }

    public void setApkInfo(ApkUpdateInfo apkInfo) {
        this.apkInfo = apkInfo;
    }

    public String getApkUrl() {
        return apkUrl;
    }

    public void setApkUrl(String apkUrl) {
        this.apkUrl = apkUrl;
    }

    public WeexUpdateInfo getWeexInfo() {
        return weexInfo;
    }

    public void setWeexInfo(WeexUpdateInfo weexInfo) {
        this.weexInfo = weexInfo;
    }

    public String getWeexUrl() {
        return weexUrl;
    }

    public void setWeexUrl(String weexUrl) {
        this.weexUrl = weexUrl;
    }

    public static class ApkUpdateInfo implements Serializable {

        @Expose()
        @SerializedName("fileName")
        String fileName;


        public String getFileName() {
            return fileName;
        }

        public void setFileName(String fileName) {
            this.fileName = fileName;
        }
    }


    public static class WeexUpdateInfo implements Serializable {

        @Expose()
        @SerializedName("fileName")
        String fileName;


        public String getFileName() {
            return fileName;
        }

        public void setFileName(String fileName) {
            this.fileName = fileName;
        }
    }
}
